package ga.wavaplayer.events {
	import flash.events.Event;
	
	public class WStreamEvent extends Event {
		
		public static const META_DATA:String = 'wstream.meta_data';
		public static const CUE_POINT:String = 'wstream.cue_point';
		public static const NOT_FOUND:String = 'wstream.not_found';
		public static const PLAYBACK_START:String = 'wstream.playback_start';
		public static const PLAYBACK_STOP:String = 'wstream.playback_stop';
		public static const PLAYBACK_FAILED:String = 'wstream.playback_failed';
		public static const PLAYBACK_PAUSE:String = 'wstream.playback_pause';
		public static const PLAYBACK_RESUME:String = 'wstream.playback_resume';
		public static const PLAYBACK_SWITCH:String = 'wstream.playback_switch';
		public static const PLAYBACK_COMPLETE:String = 'wstream.playback_complete';
		
		public function WStreamEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false) { 
			super(type, bubbles, cancelable);
			
		} 
		
		public override function clone():Event { 
			return new WStreamEvent(type, bubbles, cancelable);
		} 
		
		public override function toString():String { 
			return formatToString("WStreamEvent", "type", "bubbles", "cancelable", "eventPhase"); 
		}
	}
}
